// stores/counter.js
import { defineStore } from 'pinia'

export const useDigitalTwinStore = defineStore('digitalTwin', {
  state: () => {
    return {
      IsOnReady: false,
      infoTreeObj: {},
      animationObj: {}
    } as any
  },
  actions: {
    SetIsOnReady(flag: true) {
      this.IsOnReady = flag
    },
    SetInfoTreeObj(obj: any) {
      this.infoTreeObj = obj
    },
    SetAnimationObj(obj: any) {
      this.animationObj = obj
    }
  }
})
